/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tv.global.modelo;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author ctrosch
 */
@Entity
@Table(name = "USR_TVPPAL", schema = "dbo")
public class MenuPrincipal implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "USR_TVPPAL_CODIGO", nullable = false, length = 80)
    private String codigo;

    @Column(name = "USR_TVPPAL_IMGPTH", nullable = false, length = 80)
    private String imgpth;
    @Column(name = "USR_TVPPAL_LINK", length = 80)
    private String link;
    @Lob
    @Column(name = "USR_TVPPAL_DESCRP", length = 2147483647)
    private String descrp;
    @Column(name = "USR_TVPPAL_TITULO", length = 40)
    private String titulo;
    @Column(name = "USR_TV_FECALT")
    @Temporal(TemporalType.TIMESTAMP)
    private Date fecalt;
    @Column(name = "USR_TV_FECMOD")
    @Temporal(TemporalType.TIMESTAMP)
    private Date fecmod;
    @Column(name = "USR_TV_USERID", length = 15)
    private String userid;
    @Column(name = "USR_TV_ULTOPR")
    private Character ultopr;
    @Column(name = "USR_TV_DEBAJA")
    private Character debaja;
    

    public MenuPrincipal() {

    }

    public String getCodigo() {
        return codigo;
    }

    public void setCodigo(String codigo) {
        this.codigo = codigo;
    }
    
    public Character getDebaja() {
        return debaja;
    }

    public void setDebaja(Character debaja) {
        this.debaja = debaja;
    }

    public String getDescrp() {
        return descrp;
    }

    public void setDescrp(String descrp) {
        this.descrp = descrp;
    }

    public Date getFecalt() {
        return fecalt;
    }

    public void setFecalt(Date fecalt) {
        this.fecalt = fecalt;
    }

    public Date getFecmod() {
        return fecmod;
    }

    public void setFecmod(Date fecmod) {
        this.fecmod = fecmod;
    }

    public String getImgpth() {
        return imgpth;
    }

    public void setImgpth(String imgpth) {
        this.imgpth = imgpth;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public String getTitulo() {
        return titulo;
    }

    public void setTitulo(String titulo) {
        this.titulo = titulo;
    }

    public Character getUltopr() {
        return ultopr;
    }

    public void setUltopr(Character ultopr) {
        this.ultopr = ultopr;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (imgpth != null ? imgpth.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof MenuPrincipal)) {
            return false;
        }
        MenuPrincipal other = (MenuPrincipal) object;
        if ((this.imgpth == null && other.imgpth != null) || (this.imgpth != null && !this.imgpth.equals(other.imgpth))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "tv.global.modelo.MenuPrincipal[usrTvppalImgpth=" + imgpth + "]";
    }

}
